<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>System</title>
<link type="text/css" href="/Public/jcms/css/layout.css" rel="stylesheet" />		
<script type="text/javascript">
function Reload(){
	window.parent['mainFrame'].location.reload();	
}
function Parent1(url){
	window.parent.window.location.href=url;
}
function menu(url){
	window.parent.frames["leftFrame"].location.href=url;
}
</script>
<style>
body a{outline:none;blr:expression(this.onFocus=this.blur());}
html{overflow-x: hidden; overflow-y: auto;}
.nvaa{color:#FFF;font-weight:bold;float:left;}
.fl{float:left;}
</style>
</head>
<body>
<div id="container">
    <div id="header">

        <div id="top" class="fl">
            <div class="logo"> 
                <a href="#" title="System" class="tooltip"><img src="/Public/jcms/assets/logo.png" alt="System" /></a> 
            </div>
            <div class="meta">
            	<p>您好 <?php echo ($adname); ?>!</p>
                <ul>
                    <li><a href="javascript:void(0);" onclick="Parent1('/index.php?s=/Home/Index/logout/')" class="tooltip"><span class="ui-icon ui-icon-power"></span>退出</a></li>
                    <li><a href="/index.php?s=/Sys/aduser_edit_myself/act/edit/id/<?php echo ($adid); ?>" target="mainFrame" class="tooltip"><span class="ui-icon ui-icon-wrench"></span>修改密码</a></li>
                    <li><a href="/index.php?s=/Sys/cache" target="mainFrame" class="tooltip"><span class="ui-icon ui-icon-person"></span>清除缓存</a></li>
                    <li><a href="javascript:void(0);" onclick="Reload()" target="mainFrame" class="tooltip"><span class="ui-icon ui-icon-arrowrefresh-1-w"></span>刷新</a></li>
                    <li><a href="<?php echo getMyUrl('www');?>" target="_blank" class="tooltip"><span class="ui-icon ui-icon-home"></span>前台首页</a></li>
                </ul>	
            </div>
        </div>
        <div id="navbar">
            <ul class="nav">
            	<?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a name="menu" href="javascript:void(0);" onclick="menu('/index.php?s=/Home/Index<?php echo ($vo["url"]); ?>')"><?php echo ($vo["name"]); ?></a></li><?php endforeach; endif; else: echo "$empty" ;endif; ?>               
            </ul>
        </div>
        <div id="search" style="display:none;">
            <form action="/search/" method="POST">
                <p>
                    <input type="submit" value="" class="but" />
                    <input type="text" name="q" value="Search the admin panel" onFocus="if(this.value==this.defaultValue)this.value='';" onBlur="if(this.value=='')this.value=this.defaultValue;" />
                </p>
            </form>
        </div>  
    </div>
</div>
</body>
</html>